package com.xmy.erp.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.erp.entity.Organization;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 组织机构 Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
public interface OrganizationMapper extends BaseMapper<Organization> {
    @Select("select id from organization ${ew.customSqlSegment}")
    public abstract List<Long> getOrganiztionId(@Param(Constants.WRAPPER) Wrapper wrapper);
}
